import { Language } from "../../../../extend/language/Language";
import { ModuleType } from "./ModuleType";
type int = number;
//class ModuleTypeTip
    
    export  class ModuleTypeTip
    {
        constructor()
        {
            
            if (ModuleTypeTip._instance) 
            {
                throw new Error("ModuleTypeTip singleton ");
            }
            this.init();
            return;
        }

        public getTip(arg1: string, ... rest): string
        {
            var loc1=ModuleTypeTip._tipsDict[arg1] as int;
            return Language.getStringByParam(loc1, rest);
        }

        /* internal  */init(): void
        {
            ModuleTypeTip._tipsDict = new Map<any, any> /* flash.utils.Dictionary */();
            this.regTip(ModuleType.AutoFight, "开始/关闭挂机", 51031);
            this.regTip(ModuleType.Pack, "背包", 51005);
            this.regTip(ModuleType.Players, "人物", 51004);
            this.regTip(ModuleType.Rest, "打坐");
            this.regTip(ModuleType.Mail, "信件", 51033);
            this.regTip(ModuleType.Friend, "好友", 51007);
            this.regTip(ModuleType.Guild, "仙盟", 51008);
            this.regTip(ModuleType.DownUpMounts, "上下坐骑");
            this.regTip(ModuleType.Fu, "福利公告", 51029);
            this.regTip(ModuleType.Mounts, "坐骑", 51116);
            this.regTip(ModuleType.Build, "炼器", 51023);
            this.regTip(ModuleType.Jewel, "宝石", 51024);
            this.regTip(ModuleType.Tu, "地图", 51027);
            this.regTip(ModuleType.Daily, "日常", 51009);
            this.regTip(ModuleType.Bang, "排行榜", 51030);
            this.regTip(ModuleType.Tasks, "任务");
            this.regTip(ModuleType.PetsRest, "召唤/收回宠物");
            this.regTip(ModuleType.Shops, "商城", 51017);
            this.regTip(ModuleType.Group, "队伍", 51113);
            this.regTip(ModuleType.WuXing, "五行", 51120);
            this.regTip(ModuleType.Skills, "技能", 51010);
            this.regTip(ModuleType.Pets, "宠物", 51006);
            this.regTip(ModuleType.XpSkill, "释放九天神雷");
            this.regTip(ModuleType.Market, "市场", 51021);
            this.regTip(ModuleType.RangeAutoFight, "范围挂机");
            this.regTip(ModuleType.SwitchTarget, "切换目标");
            this.regTip(ModuleType.CancelTarget, "取消目标/关闭界面");
            this.regTip(ModuleType.FullScreen, "全屏/窗口切换", 51034);
            this.regTip(ModuleType.HidePlayerPet, "屏蔽玩家、宠物");
            this.regTip(ModuleType.PickBox, "拾取掉落箱子");
            this.regTip(ModuleType.StartOrEndChat, "开始/结束聊天");
            this.regTip(ModuleType.NotMove, "原地停留");
            return;
        }

        /* internal  */regTip(arg1: string, arg2: string, arg3: int=0): void
        {
            ModuleTypeTip._tipsDict[arg1] = arg3;
            return;
        }

        public static get instance(): ModuleTypeTip
        {
            if (!ModuleTypeTip._instance) 
            {
                ModuleTypeTip._instance = new ModuleTypeTip();
            }
            return ModuleTypeTip._instance;
        }

        /* internal */ static /* var */_tipsDict: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ static /* var */_instance: ModuleTypeTip;
    }
